package com.ljxt.dt.dao.purchasingmanagementdao;

import com.ljxt.dt.util.xhq.ResultSetConsumer;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

/**
 * @author 徐浩钦
 * @version 1.0.0
 * @date 2020/5/12 10:48
 * @copyright 老九学堂T11
 */
public class CountProducer implements ResultSetConsumer<Integer> {

    @Override
    public Integer apply(ResultSet rs) throws SQLException {
        return Math.toIntExact((Long) rs.getObject(1));
    }

    @Override
    public Boolean accept(Integer object) {
        return false;
    }

}
